package com.yxw.yxnet_cd_center.customer_service.dto;



import com.baomidou.mybatisplus.annotation.TableField;
import com.yxw.yxnet_cd_center.customer_service.entity.YxcscFlockTalkRecordEntity;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotNull;
/*
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotNull;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.NoArgsConstructor;
*/



@Data
//@EqualsAndHashCode(callSuper = true)
public class YxcscFlockTalkRecordDTO   implements Serializable
{
    private static final long serialVersionUID = 1156239193L;
    /**
    *群ID
    */
    @NotNull(message = "群ID不可为空")
    @ApiModelProperty(value = "群ID")
    private Long flockId;
    /**
    *群类别: 0,分流规则的群 1,是技术支持群
    */
    @NotNull(message = "群类别不可为空")
    @ApiModelProperty(value = "群类别: 0,分流规则的群 1,是技术支持群")
    private Integer  flockType;
    /**
    *呼叫对象ID
    */
    @ApiModelProperty(value = "呼叫对象ID")
    private Long callUserId;
    /**
    *发送者ID
    */
    @NotNull(message = "发送者ID不可为空")
    @ApiModelProperty(value = "发送者ID")
    private Long senderId;
    /**
    *发送者姓名
    */
    @NotBlank(message = "发送者姓名不可为空")
    @ApiModelProperty(value = "发送者姓名")
    private String senderName;
    /**
    *会话聊天内容
    */
    @NotBlank(message = "聊天内容不可为空")
    @ApiModelProperty(value = "会话聊天内容")
    private String talkInfo;
    
     /*
    *消息体类型： picture,sound,vedio,multitype
    */
    @NotBlank(message = "聊天消息体类型不可为空")
    @ApiModelProperty(value = "聊天消息体类型： picture,sound,vedio,multitype")
    private String talkInfoType;  
    /**
    *会话时间,时间戳
    */
    //@ApiModelProperty(value = "会话时间,时间戳")
    //private Long createTime;
    /**
    *是否已发送 0:否 1：是
    */
    //@ApiModelProperty(value = "是否已发送 0:否 1：是")
    //private Integer sendFlag;
    /**
    *将DTO转换为ENTITY
    */
    public YxcscFlockTalkRecordEntity ConverToEntity()
    {
        YxcscFlockTalkRecordEntity oYxcscFlockTalkRecordEntity = new YxcscFlockTalkRecordEntity ();
        //oYxcscFlockTalkRecordEntity.setId(Id) ;
        oYxcscFlockTalkRecordEntity.setCallUserId(callUserId) ;
        oYxcscFlockTalkRecordEntity.setSenderId(senderId) ;
        oYxcscFlockTalkRecordEntity.setSenderName(senderName) ;
        oYxcscFlockTalkRecordEntity.setTalkInfo(talkInfo) ;
        //oYxcscFlockTalkRecordEntity.setCreateTime(createTime) ;
        //oYxcscFlockTalkRecordEntity.setSendFlag(sendFlag) ;
        return oYxcscFlockTalkRecordEntity;
    }
}

